$(document).ready(function(){
	initGrid({
		url: 'getJson.json'
	});
	
	addSubmit();
	showEditModal('attendanceLog');
	
});
function initGrid(options){
	options = options || {};
    var colModel = [
            { label: '编号', name: 'id', key: true, fixed:true, width: 55, align: 'center' },
            { label: '员工编号', name: 'staffCode', index:'staff_code', width: 150 },
            { label: '员工姓名', name: 'staff.name', width: 150, sortable: false },
            { label: '签到类型', name: 'aType', index:'a_type', width: 150 },
            { label: '签到日期', name: 'aDate', index:'a_date', width: 150 },
            { label: '签到时间', name: 'aTime', index:'a_time', width: 150 },
            { label: '签到地址', name: 'address', width: 150 },
            { label: '操作', name: '', width: 65, fixed: true, formatter: customActions }
        ];
	options.colModel = colModel;
	customGrid.init(options);
}